import {Link, useNavigate} from 'react-router-dom'
function Nomatch() {
    var navigate = useNavigate();
    return ( <div>
        <h1>404</h1>
        <p>您的页面被外星人抓走了</p>
        <button onClick={()=>navigate("/",{replace:true})} >首页</button>
        <Link to="/" replace>回首页</Link>
    </div> );
}

export default Nomatch;